package me.alex.learnkotlin.learnKT8

class Money(val num: Int) {

    operator fun plus(money: Money): Money {
        val sum = num + money.num
        return Money(sum)
    }

    operator fun plus(num: Int): Money {
        val sum = num + this.num
        return Money(sum)
    }
}